﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.hive
{
	// Token: 0x020001C7 RID: 455
	public class THiveSet : TCustomSqlStatement
	{
		// Token: 0x06000F30 RID: 3888 RVA: 0x0030B3D8 File Offset: 0x003095D8
		public THiveSet(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.ssthiveSet;
		}

		// Token: 0x170002D0 RID: 720
		// (get) Token: 0x06000F31 RID: 3889 RVA: 0x0030B3EC File Offset: 0x003095EC
		// (set) Token: 0x06000F32 RID: 3890 RVA: 0x0030B3F4 File Offset: 0x003095F4
		public virtual TExpression Expr
		{
			get
			{
				return this.expr;
			}
			set
			{
				this.expr = value;
			}
		}

		// Token: 0x06000F33 RID: 3891 RVA: 0x0030B400 File Offset: 0x00309600
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TSetSqlNode tsetSqlNode = (TSetSqlNode)this.rootNode;
			this.expr = tsetSqlNode.Assignments[0].Expression;
			return 0;
		}

		// Token: 0x06000F34 RID: 3892 RVA: 0x0030B443 File Offset: 0x00309643
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000F35 RID: 3893 RVA: 0x0030B453 File Offset: 0x00309653
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.expr.accept(v);
			v.postVisit(this);
		}

		// Token: 0x04001362 RID: 4962
		internal TExpression expr;
	}
}
